<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="smart-doc">
    <%if(isNotEmpty(projectName)){%><title>${projectName}</title><%}else{%><title>API Reference</title><%}%>
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
    <link rel="stylesheet" href="AllInOne.css?v=${version}"/>
    <script src="https://cdn.bootcss.com/jquery/1.12.2/jquery.js"></script>
</head>
<body class="book toc2 toc-left">
<div id="header"><%if(isNotEmpty(projectName)){%><h1>${projectName}</h1><%}%>
    <div id="toc" class="toc2">
        <div id="toctitle"><span>API Reference</span></div>
        <ul id="accordion" class="sectlevel1">
            <li><a href="#_add_dependency">1. Add dependency</a></li>
            <%for(api in apiDocList){%>
            <%if(apiLP.first){%>
            <li class="open"><a class="dd" href="#_${api.desc}">${api.order+1}.&nbsp;${api.desc}</a>
                <ul class="sectlevel2" style="display: block"><%for(doc in api.list){%>
                    <li><%if(doc.deprecated){%><a href="#_${api.order+1}_${doc.order}_${doc.desc}">${api.order+1}.${doc.order}.&nbsp;<span
                            class="line-through">${doc.desc}</span></a><%}else{%><a
                            href="#_${api.order+1}_${doc.order}_${doc.desc}">${api.order+1}.${doc.order}.&nbsp;${doc.desc}</a><%}%>
                    </li>
                    <%}%>
                </ul>
            </li>
            <%}else{%>
            <li><a class="dd" href="#_${api.desc}">${api.order+1}.&nbsp;${api.desc}</a>
                <ul class="sectlevel2"><%for(doc in api.list){%>
                    <li><%if(doc.deprecated){%><a href="#_${api.order+1}_${doc.order}_${doc.desc}">${api.order+1}.${doc.order}.&nbsp;<span
                            class="line-through">${doc.desc}</span></a><%}else{%><a
                            href="#_${api.order+1}_${doc.order}_${doc.desc}">${api.order+1}.${doc.order}.&nbsp;${doc.desc}</a><%}%>
                    </li>
                    <%}%>
                </ul>
            </li>
            <%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
            <li><a href="#_error_code_list">${apiDocList.~size+1}.${errorListTitle}</a></li>
            <%}%><%if(isNotEmpty(dictList)){%>
            <li><a class="dd" href="#_dict_list">${dictListOrder}.&nbsp;${dictListTitle}</a>
                <ul class="sectlevel2"><%for(dict in dictList){%>
                    <li><a href="#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}.&nbsp;${dict.title}</a>
                    </li>
                    <%}%>
                </ul>
            </li>
            <%}%>
        </ul>
    </div>
</div>
<div id="content">
    <%if(isNotEmpty(revisionLogList)){%>
    <div id="preamble">
        <div class="sectionbody">
            <table class="tableblock frame-all grid-all spread">
                <colgroup>
                    <col style="width: 20%;">
                    <col style="width: 20%;">
                    <col style="width: 20%;">
                    <col style="width: 20%;">
                    <col style="width: 20%;">
                </colgroup>
                <thead>
                <tr>
                    <th class="tableblock halign-left valign-top">Version</th>
                    <th class="tableblock halign-left valign-top">Update Time</th>
                    <th class="tableblock halign-left valign-top">Status</th>
                    <th class="tableblock halign-left valign-top">Author</th>
                    <th class="tableblock halign-left valign-top">Description</th>
                </tr>
                </thead>
                <tbody><%for(revisionLog in revisionLogList){%>
                <tr>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${revisionLog.version}</p></td>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${revisionLog.revisionTime}</p>
                    </td>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${revisionLog.status}</p></td>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${revisionLog.author}</p></td>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${revisionLog.remarks}</p></td>
                </tr>
                <%}%>
                </tbody>
            </table>
        </div>
    </div>
    <%}%>
    <%if(isNotEmpty(dependencyList)){%>
    <div class="sect1">
        <h2 id="_add_dependency"><a class="anchor" href="#_add_dependency"></a><a class="link" href="#_add_dependency">1.
            Add dependency</a></h2>
        <div class="sectionbody">
            <div class="listingblock">
                <div class="content">
<pre><%for(dp in dependencyList){%>&lt;dependency&gt;
    &lt;groupId&gt;${dp.groupId}&lt;/groupId&gt;
    &lt;artifactId&gt;${dp.artifactId}&lt;/artifactId&gt;
    &lt;version&gt;${dp.version}&lt;/version&gt;
&lt;/dependency&gt;
    <%}%>
</pre>
                </div>
            </div>
        </div>
    </div>
    <%}%>

    <%for(api in apiDocList){%>
    <div class="sect1"><h2 id="_${api.desc}"><a class="anchor" href="#_${api.desc}"></a><a class="link"
                                                                                           href="#_${api.desc}">${api.order+1}.&nbsp;${api.desc}</a>
    </h2>
        <div class="sectionbody">
            <div class="paragraph">
                <p><strong>URI:</strong> ${api.uri}</p>
            </div>
            <div class="paragraph">
                <p><strong>Service:</strong> ${api.name}</p>
            </div>
            <div class="paragraph">
                <p><strong>Protocol:</strong> ${api.protocol}</p>
            </div>
            <div class="paragraph">
                <p><strong>Author:</strong> ${api.author}</p>
            </div>
            <div class="paragraph">
                <p><strong>Version:</strong> ${api.version}</p>
            </div>
            <%for(doc in api.list){%>
            <div class="sect2"><h3 id="_${api.order+1}_${doc.order}_${doc.desc}"><a class="anchor"
                                                                                  href="#_${api.order+1}_${doc.order}_${doc.desc}"></a><%if(doc.deprecated){%><a
                    class="link" href="#_${api.order+1}_${doc.order}_${doc.desc}">${api.order+1}.${doc.order}.&nbsp;<span
                    class="line-through">${doc.desc}</span></a><%}else{%><a class="link"
                                                                            href="#_${api.order+1}_${doc.order}_${doc.desc}">${api.order+1}.${doc.order}.&nbsp;${doc.desc}</a><%}%>
            </h3>
                <div class="paragraph"><p><strong>Definition:</strong><a href="${doc.methodDefinition}" class="bare">&nbsp;${doc.methodDefinition}</a>
                </p></div>
                <div class="paragraph"><p><strong>Description:</strong>&nbsp;${doc.detail}</p></div>
               <%if(isNotEmpty(doc.requestParams)){%>
                <div class="paragraph"><p><strong>Request-parameters:</strong></p></div>
                <table class="tableblock frame-all grid-all spread">
                    <colgroup>
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="tableblock halign-left valign-top">Parameter</th>
                        <th class="tableblock halign-left valign-top">Type</th>
                        <th class="tableblock halign-left valign-top">Description</th>
                        <th class="tableblock halign-left valign-top">Required</th>
                        <th class="tableblock halign-left valign-top">Since</th>
                    </tr>
                    </thead>
                    <tbody><%for(param in doc.requestParams){%>
                    <tr>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.field}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.type}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.desc}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.required}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.version}</p></td>
                    </tr>
                    <%}%>
                    </tbody>
                </table>
                <%}%>
                <%if(isNotEmpty(doc.responseParams)){%>
                <div class="paragraph"><p><strong>Response-fields:</strong></p></div>
                <table class="tableblock frame-all grid-all spread">
                    <colgroup>
                        <col style="width: 25%;">
                        <col style="width: 25%;">
                        <col style="width: 25%;">
                        <col style="width: 25%;">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="tableblock halign-left valign-top">Field</th>
                        <th class="tableblock halign-left valign-top">Type</th>
                        <th class="tableblock halign-left valign-top">Description</th>
                        <th class="tableblock halign-left valign-top">Since</th>
                    </tr>
                    </thead>
                    <tbody><%for(param in doc.responseParams){%>
                    <tr>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.field}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.type}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.desc}</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">${param.version}</p></td>
                    </tr>
                    <%}%>
                    </tbody>
                </table>
                <%}%>
            </div>
            <%}%>
        </div>
    </div>
    <%}%>
    <%if(isNotEmpty(errorCodeList)){%>
    <div class="sect1"><h2 id="_error_code_list"><a class="anchor" href="#_error_code_list"></a><a class="link"
                                                                                                   href="#_error_code_list">${apiDocList.~size+2}.&nbsp;${errorListTitle}</a>
    </h2>
        <div class="sectionbody">
            <table class="tableblock frame-all grid-all spread">
                <colgroup>
                    <col style="width: 50%;">
                    <col style="width: 50%;">
                </colgroup>
                <thead>
                <tr>
                    <th class="tableblock halign-left valign-top">Error code</th>
                    <th class="tableblock halign-left valign-top">Description</th>
                </tr>
                </thead>
                <tbody><%for(error in errorCodeList){%>
                <tr>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${error.value}</p></td>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">${error.desc}</p></td>
                </tr>
                <%}%>
                </tbody>
            </table>
        </div>
    </div>
    <%}%>
    <footer class="page-footer"><span class="copyright">Generated by smart-doc at ${createTime}</span><span
            class="footer-modification">Suggestions,contact,support and error reporting on<a
            href="https://gitee.com/sunyurepository/smart-doc" target="_blank">&nbsp;Gitee</a>&nbsp;or<a
            href="https://github.com/shalousun/smart-doc" target="_blank">&nbsp;Github</a></span></footer>
</div>
<script>    $(function () {
    var Accordion = function (el, multiple) {
        this.el = el || {};
        this.multiple = multiple || false;
        var links = this.el.find('.dd');
        links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
    };
    Accordion.prototype.dropdown = function (e) {
        var $el = e.data.el;
        $this = $(this), $next = $this.next();
        $next.slideToggle();
        $this.parent().toggleClass('open');
        if (!e.data.multiple) {
            $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
        }
    };
    new Accordion($('#accordion'), false);
});</script>
</body>
</html>